package com.zmn.plat.model.entity.part;

import com.zmn.common.dictionary.GlobalDict;
import com.zmn.common.utils.date.DateUtil;
import com.zmn.common.utils.pager.Operator;

import java.util.Date;

/**
 * 类描述： PartCategory 配件分类
 *
 * @author DaiZhichao
 * @since 2018/10/19 10:37
 */
public class PartCategory extends Operator {
    private Integer categId;

    /**
     * 配件分类父ID
     */
    private Integer parentId;

    /**
     * 配件分类名称
     */
    private String name;

    /**
     * 全称:配件大类名称 + 配件分类名称
     */
    private String fullName;

    /**
     * 排序号，编号越小越靠前
     */
    private Integer sort;

    /**
     * 产品分类：1家电 2非家电
     */
    private Integer productType;

    /**
     * 状态：1停用，2启用
     */
    private Short status = GlobalDict.STATUS_ENABLE;

    /**
     * 创建人
     */
    private String creater;

    /**
     * 更新人
     */
    private String updater;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getCategId() {
        return categId;
    }

    public void setCategId(Integer categId) {
        this.categId = categId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public String getCreateTimeStr() {
        return DateUtil.toString(this.createTime);
    }

    public void setCreateTimeStr(String createTimeStr) {

    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}